<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>浮动示例-导航条</title>
    <style>
        .menu{
            width: 694px;
            height: 50px;
            /*border: 1px solid #000;*/
            margin: 50px auto;
            list-style: none;
            padding: 0;
            background-color: #55a8ea;
        }
        .menu li{
            width: 98px;
            height: 48px;
            /*display: inline-block;*/
            float: left;
            text-align: center;
            border: 1px solid gold;
            margin-left: -1px;
        }
        .menu li a{
            display: block;
            width: 98px;
            height: 48px;
            font: 16px '雅黑' pink;
            color: white;
            line-height: 48px;
            text-decoration: none;
        }
        .menu li.active{
            background-color: #00619f;
        }
        .menu li a:hover{
            color: yellow;
            background-color: #00619f;
        }
    </style>
</head>
<body>
     <ul class="menu">
        <li class="active"><a href="">首页</a></li>
        <li><a href="">公司简介</a></li>
        <li><a href="">解决方案</a></li>
        <li><a href="">公司新闻</a></li>
        <li><a href="">行业动态</a></li>
        <li><a href="">招贤纳士</a></li>
        <li><a href="">联系我们</a></li>
    </ul>
</body>
</html>